package com.ysh.gsm;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;

import javax.persistence.Table;

/**
 * @author ysh
 *
 */
@IdClass(KpiCPK.class)
@Entity
@Table(name = "kpi")
@NamedQueries( {
	@NamedQuery(name = "kpi.findAll", query = "from KPI")
	
})

public class KPI implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6744804326941956179L;
		
	private int bscId;	
	
	private int probeId;
	
	private int sampInterval;
	
	private int activeCalls;
	
	private int callAttemptes;
	
	private int sdcAssignFail;		
	
	private int sdcAssignSuccess;
	
	private int sdcDropNumber;
	
	private int tchAssignAttempted;
	
	private int tchAssignNumber;
	
	private int tchDropNumber;
	
	private int callConnSucess;		
	
	private int callSetup;
	
	private int callCompleted;
	
	private int droppedCalls;
	
	private int handoverIn;
	
	private int handoverOut;
	
	private int handoverInFailure;
	
	private int handoverOutFailure;	
	
	private int locUpdate;
	
	private int locUpdateFailure;
	
	private int callDuraSmpCount;
	
	private int callDuraSum;
	
	private int callDuraMin;
	
	private int callDuraMax;
	
	private Date timeStamp;
	private int cellId;
	
	@Id
	public Date getTimeStamp() {
		return timeStamp;
	}
	public void setTimeStamp(Date timeStamp) {
		this.timeStamp = timeStamp;
	}
	@Column(name = "bsc_id")
	public int getBscId() {
		return bscId;
	}
	public void setBscId(int bscId) {
		this.bscId = bscId;
	}
	@Id
	public int getCellId() {
		return cellId;
	}
	public void setCellId(int cellId) {
		this.cellId = cellId;
	}
	@Column(name = "probe_id")
	public int getProbeId() {
		return probeId;
	}
	public void setProbeId(int probeId) {
		this.probeId = probeId;
	}
	@Column(name = "sampling_interval")
	public int getSampInterval() {
		return sampInterval;
	}
	public void setSampInterval(int sampInterval) {
		this.sampInterval = sampInterval;
	}
	@Column(name = "active_calls")
	public int getActiveCalls() {
		return activeCalls;
	}
	public void setActiveCalls(int activeCalls) {
		this.activeCalls = activeCalls;
	}
	@Column(name = "calls_attempted")
	public int getCallAttemptes() {
		return callAttemptes;
	}
	public void setCallAttemptes(int callAttemptes) {
		this.callAttemptes = callAttemptes;
	}
	@Column(name = "calls_connected_successfully")
	public int getCallConnSucess() {
		return callConnSucess;
	}
	public void setCallConnSucess(int callConnSucess) {
		this.callConnSucess = callConnSucess;
	}
	@Column(name = "calls_setup")
	public int getCallSetup() {
		return callSetup;
	}
	public void setCallSetup(int callSetup) {
		this.callSetup = callSetup;
	}
	@Column(name = "calls_completed")
	public int getCallCompleted() {
		return callCompleted;
	}
	public void setCallCompleted(int callCompleted) {
		this.callCompleted = callCompleted;
	}
	@Column(name = "dropped_calls")
	public int getDroppedCalls() {
		return droppedCalls;
	}
	public void setDroppedCalls(int droppedCalls) {
		this.droppedCalls = droppedCalls;
	}
	@Column(name = "handover_in")
	public int getHandoverIn() {
		return handoverIn;
	}
	public void setHandoverIn(int handoverIn) {
		this.handoverIn = handoverIn;
	}
	@Column(name = "handover_out")
	public int getHandoverOut() {
		return handoverOut;
	}
	public void setHandoverOut(int handoverOut) {
		this.handoverOut = handoverOut;
	}
	@Column(name = "handover_in_failure")
	public int getHandoverInFailure() {
		return handoverInFailure;
	}
	public void setHandoverInFailure(int handoverInFailure) {
		this.handoverInFailure = handoverInFailure;
	}
	@Column(name = "handover_out_failure")
	public int getHandoverOutFailure() {
		return handoverOutFailure;
	}
	public void setHandoverOutFailure(int handoverOutFailure) {
		this.handoverOutFailure = handoverOutFailure;
	}
	@Column(name = "loc_update")
	public int getLocUpdate() {
		return locUpdate;
	}
	public void setLocUpdate(int locUpdate) {
		this.locUpdate = locUpdate;
	}
	@Column(name = "loc_update_failure")
	public int getLocUpdateFailure() {
		return locUpdateFailure;
	}
	public void setLocUpdateFailure(int locUpdateFailure) {
		this.locUpdateFailure = locUpdateFailure;
	}
	@Column(name = "call_duration_sample_count")
	public int getCallDuraSmpCount() {
		return callDuraSmpCount;
	}
	public void setCallDuraSmpCount(int callDuraSmpCount) {
		this.callDuraSmpCount = callDuraSmpCount;
	}
	@Column(name = "call_duration_sum")
	public int getCallDuraSum() {
		return callDuraSum;
	}
	public void setCallDuraSum(int callDuraSum) {
		this.callDuraSum = callDuraSum;
	}
	@Column(name = "call_duration_min")
	public int getCallDuraMin() {
		return callDuraMin;
	}
	public void setCallDuraMin(int callDuraMin) {
		this.callDuraMin = callDuraMin;
	}
	@Column(name = "call_duration_max")
	public int getCallDuraMax() {
		return callDuraMax;
	}
	public void setCallDuraMax(int callDuraMax) {
		this.callDuraMax = callDuraMax;
	}
	@Column(name = "sdcch_assignment_failed")
	public int getSdcAssignFail() {
		return sdcAssignFail;
	}
	public void setSdcAssignFail(int sdcAssignFail) {
		this.sdcAssignFail = sdcAssignFail;
	}
	@Column(name = "sdcch_assignment_success")
	public int getSdcAssignSuccess() {
		return sdcAssignSuccess;
	}
	public void setSdcAssignSuccess(int sdcAssignSuccess) {
		this.sdcAssignSuccess = sdcAssignSuccess;
	}
	@Column(name = "sdcch_drop_number")
	public int getSdcDropNumber() {
		return sdcDropNumber;
	}
	public void setSdcDropNumber(int sdcDropNumber) {
		this.sdcDropNumber = sdcDropNumber;
	}
	@Column(name = "tch_assignment_attempted")
	public int getTchAssignAttempted() {
		return tchAssignAttempted;
	}
	public void setTchAssignAttempted(int tchAssignAttempted) {
		this.tchAssignAttempted = tchAssignAttempted;
	}
	@Column(name = "tch_assignment_number")
	public int getTchAssignNumber() {
		return tchAssignNumber;
	}
	public void setTchAssignNumber(int tchAssignNumber) {
		this.tchAssignNumber = tchAssignNumber;
	}
	@Column(name = "tch_drop_number")
	public int getTchDropNumber() {
		return tchDropNumber;
	}
	public void setTchDropNumber(int tchDropNumber) {
		this.tchDropNumber = tchDropNumber;
	}
	
	

}
